Optimal. Leaf size=89 \[ \frac {64 a^3 \sec (c+d x) \sqrt {a+a \sin (c+d x)}}{3 d}-\frac {16 a^2 \sec (c+d x) (a+a \sin (c+d x))^{3/2}}{3 d}-\frac {2 a \sec (c+d x) (a+a \sin (c+d x))^{5/2}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2753, 2752}
\begin {gather*} \frac {64 a^3 \sec (c+d x) \sqrt {a \sin (c+d x)+a}}{3 d}-\frac {16 a^2 \sec (c+d x) (a \sin (c+d x)+a)^{3/2}}{3 d}-\frac {2 a \sec (c+d x) (a \sin (c+d x)+a)^{5/2}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2752
Rule 2753
Rubi steps
\begin {align*} \int \sec ^2(c+d x) (a+a \sin (c+d x))^{7/2} \, dx &=-\frac {2 a \sec (c+d x) (a+a \sin (c+d x))^{5/2}}{3 d}+\frac {1}{3} (8 a) \int \sec ^2(c+d x) (a+a \sin (c+d x))^{5/2} \, dx\\ &=-\frac {16 a^2 \sec (c+d x) (a+a \sin (c+d x))^{3/2}}{3 d}-\frac {2 a \sec (c+d x) (a+a \sin (c+d x))^{5/2}}{3 d}+\frac {1}{3} \left (32 a^2\right ) \int \sec ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx\\ &=\frac {64 a^3 \sec (c+d x) \sqrt {a+a \sin (c+d x)}}{3 d}-\frac {16 a^2 \sec (c+d x) (a+a \sin (c+d x))^{3/2}}{3 d}-\frac {2 a \sec (c+d x) (a+a \sin (c+d x))^{5/2}}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 5.30, size = 48, normalized size = 0.54 \begin {gather*} \frac {a^3 \sec (c+d x) (45+\cos (2 (c+d x))-20 \sin (c+d x)) \sqrt {a (1+\sin (c+d x))}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.34, size = 55, normalized size = 0.62
method | result | size |
default | \(-\frac {2 a^{4} \left (1+\sin \left (d x +c \right )\right ) \left (\sin ^{2}\left (d x +c \right )+10 \sin \left (d x +c \right )-23\right )}{3 \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 237 vs.
\(2 (77) = 154\).
time = 0.57, size = 237, normalized size = 2.66 \begin {gather*} -\frac {2 \, {\left (23 \, a^{\frac {7}{2}} - \frac {20 \, a^{\frac {7}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {88 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {60 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {130 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {60 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {88 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {20 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {23 \, a^{\frac {7}{2}} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}}\right )}}{3 \, d {\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )} {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 54, normalized size = 0.61 \begin {gather*} \frac {2 \, {\left (a^{3} \cos \left (d x + c\right )^{2} - 10 \, a^{3} \sin \left (d x + c\right ) + 22 \, a^{3}\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{3 \, d \cos \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.30, size = 105, normalized size = 1.18 \begin {gather*} \frac {4 \, \sqrt {2} {\left (a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 6 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - \frac {3 \, a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}{\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )}\right )} \sqrt {a}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{7/2}}{{\cos \left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________